//---------------------------------------------------------------------------

#ifndef filelibH
#define filelibH
//---------------------------------------------------------------------------
#endif

#include <windows.h>
#include <stdlib.h>

#define LOGFILE_NOENDOFLINE   0x00000001
#define LOGFILE_DONTADDTIME   0x00000002


class CLogFile
{
	public:
	bool OpenLog(char* filepath);
	bool WriteLog(char* str,DWORD flags=0,ULONG strlen=-1);
	bool ResetLog();
	void CloseLog();
	protected:
	HANDLE HFile;
	BYTE endline[2];
};
